package com.qf.pck.controller;

import com.qf.pck.entity.Package;
import com.qf.pck.service.impl.PackageServiceImpl;
import com.qf.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 租户套餐表 前端控制器
 * </p>
 *
 * @author 程序员
 * @since 2023-10-28
 */
@RestController
@CrossOrigin
@RequestMapping("/package")
public class PackageController {

    @Autowired
    private PackageServiceImpl packageService;

    //查询全部套餐
    @GetMapping("/all")
    public R<List<Package>>all(){
        return packageService.listPck();
    }



}
